﻿using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Domain.Entity;

namespace Infrastructure.Data.Repository
{
    public partial class EntityDb : DbContext
    {
        public EntityDb()
            : base("name=EntityDb")
        {
        }
    	
    	public EntityDb(string name)
            : base(name)
        {
        }
    
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
    		modelBuilder.Configurations.Add(new AdvertiseMapping());
    		modelBuilder.Configurations.Add(new AdvertisePicMapping());
    		modelBuilder.Configurations.Add(new ArticleClassMapping());
    		modelBuilder.Configurations.Add(new ArticleCommMapping());
    		modelBuilder.Configurations.Add(new ArticleInfoMapping());
    		modelBuilder.Configurations.Add(new ArticleInfoClassMapping());
    		modelBuilder.Configurations.Add(new ArticlePicMapping());
    		modelBuilder.Configurations.Add(new ArticleSightMapping());
    		modelBuilder.Configurations.Add(new ArticleTagMapping());
    		modelBuilder.Configurations.Add(new AutoPushMapping());
    		modelBuilder.Configurations.Add(new AutoPushDetailMapping());
    		modelBuilder.Configurations.Add(new AutoPushTimerMapping());
    		modelBuilder.Configurations.Add(new GoodsMapping());
    		modelBuilder.Configurations.Add(new GoodsImportLogMapping());
    		modelBuilder.Configurations.Add(new GoodsPicMapping());
    		modelBuilder.Configurations.Add(new LogMapping());
    		modelBuilder.Configurations.Add(new MobileClientMapping());
    		modelBuilder.Configurations.Add(new MobileClientStartLogMapping());
    		modelBuilder.Configurations.Add(new MvcActionMapping());
    		modelBuilder.Configurations.Add(new MvcActionClassMapping());
    		modelBuilder.Configurations.Add(new MvcControllerMapping());
    		modelBuilder.Configurations.Add(new MvcControllerClassMapping());
    		modelBuilder.Configurations.Add(new MvcRolePermissionMapping());
    		modelBuilder.Configurations.Add(new PicClassMapping());
    		modelBuilder.Configurations.Add(new PicCommMapping());
    		modelBuilder.Configurations.Add(new PicInfoMapping());
    		modelBuilder.Configurations.Add(new PicInfoClassMapping());
    		modelBuilder.Configurations.Add(new PicTagMapping());
    		modelBuilder.Configurations.Add(new PicThumbMapping());
    		modelBuilder.Configurations.Add(new PicThumbSizeMapping());
    		modelBuilder.Configurations.Add(new PushContentsMapping());
    		modelBuilder.Configurations.Add(new PushLogMapping());
    		modelBuilder.Configurations.Add(new RoleMapping());
    		modelBuilder.Configurations.Add(new RoleMenuMapping());
    		modelBuilder.Configurations.Add(new ScheduleMapping());
    		modelBuilder.Configurations.Add(new ScheduleImportLogMapping());
    		modelBuilder.Configurations.Add(new SightPointMapping());
    		modelBuilder.Configurations.Add(new SightPointAreaMapping());
    		modelBuilder.Configurations.Add(new SightPointClassMapping());
    		modelBuilder.Configurations.Add(new SightPointCommMapping());
    		modelBuilder.Configurations.Add(new SightPointCommReplyMapping());
    		modelBuilder.Configurations.Add(new SightPointGoodsMapping());
    		modelBuilder.Configurations.Add(new SightPointImportLogMapping());
    		modelBuilder.Configurations.Add(new SightPointPicMapping());
    		modelBuilder.Configurations.Add(new SightPointUserSiginMapping());
    		modelBuilder.Configurations.Add(new SightPointVersionMapping());
    		modelBuilder.Configurations.Add(new TourMapping());
    		modelBuilder.Configurations.Add(new TourClassMapping());
    		modelBuilder.Configurations.Add(new TourImportLogMapping());
    		modelBuilder.Configurations.Add(new TourPicMapping());
    		modelBuilder.Configurations.Add(new TourSightMapping());
    		modelBuilder.Configurations.Add(new UserMapping());
    		modelBuilder.Configurations.Add(new UserExtensionMapping());
    		modelBuilder.Configurations.Add(new UserRoleMapping());
        }
    }
}
